﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Pulsar.ClienteWcf.Dominio;
using System.ServiceModel.Web;

namespace Pulsar.ClienteWcf
{

    [ServiceContract]
    public interface IClientes
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        Cliente CrearCliente(Cliente clienteACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Clientes/{idcliente}", ResponseFormat = WebMessageFormat.Json)]
        Cliente ObtenerCliente(string idcliente);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        Cliente ModificarCliente(Cliente clienteAmodificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Clientes/{idcliente}", ResponseFormat = WebMessageFormat.Json)]
        void EliminarCliente(string idcliente);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Clientes", ResponseFormat = WebMessageFormat.Json)]
        List<Cliente> ListarClientes();

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "ColaClientes", ResponseFormat = WebMessageFormat.Json)]
        String ColaClienteRegistraPost(Cliente _clienteACrearCola);

    }
}
